package com.sqliteair.model
{
	import com.adobe.cairngorm.model.IModelLocator;
	
	[Bindable]
	public class ViewModelLocator implements IModelLocator
	{
		private static var instance:ViewModelLocator;
		
		public function ViewModelLocator(enforcer:ModelEnforcer)
		{
			if(enforcer == null)
			{
				throw new Error("You can only have one ViewModelLocator.");
			}
		}
		
		public static function getInstance():ViewModelLocator
		{
			if(instance == null)
			{
				instance = new ViewModelLocator(new ModelEnforcer);
			}
			return instance;
		}
	}
}

class ModelEnforcer{}